package com.pactera.madp.cp.mapper;

import com.pactera.madp.cp.api.entity.crm.WorkAssetsInfoEntity;
import com.pactera.madp.cp.api.vo.MgrCustAssetsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MgrCustMapper {

    /**
     * 获取管户资产
     * @param jobNo
     * @param tableNameMap
     * @return
     */
    List<WorkAssetsInfoEntity> getMgrCustAssets(@Param("jobNo") String jobNo,
                                                @Param("tableNameMap") Map<String,String> tableNameMap);

    /**
     * 查询管户人信息
     * @param jobNo
     * @return
     */
    MgrCustAssetsVo getMgrInfo(@Param("jobNo") String jobNo);

    /**
     * 统计
     * @param jobNo
     * @param custTableNames
     * @return
     */
    int getMgrCustCount(@Param("jobNo") String jobNo,
                        @Param("custTableNames") List<String> custTableNames);

}
